package com.armani.service;

import com.armani.entity.Pay;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * @ProjectName: 支付
 * @Package: com.armani.service
 * @ClassName: PayService
 * @Description: TODO
 * @Author: Roc
 * @Date: 2021/11/28 17:25
 * @Version: 1.0
 **/
public interface PayService {
    /**
     *
     * @param userId
     * @param state
     * @param startTime
     * @param endTime
     * @param startRow
     * @param limit
     * @return
     */
    List<Pay> ListSearch(Integer userId,Integer state,
                         String startTime, String endTime ,Integer startRow, Integer limit );

    /**
     *
     * @param userId
     * @param state
     * @param startTime
     * @param endTime
     * @return
     */
    Integer getCount(Integer userId,Integer state,
                     String startTime, String endTime );

    /**
     * 添加
     * @param userId
     * @param orderId
     * @param payTime
     * @param payment
     * @param payway
     * @param state
     * @return
     */
    Integer insert(Integer userId, Integer orderId, Date payTime,
                   BigDecimal payment,Integer payway,Integer state);

    /**
     * 修改
     * @param userId
     * @param orderId
     * @param payTime
     * @param payment
     * @param payway
     * @param state
     * @param id
     * @return
     */
    Integer update(Integer userId, Integer orderId, Date payTime,
                   BigDecimal payment,Integer payway,Integer state,Integer id);

    /**
     * 删除
     * @param id
     * @return
     */
    Integer delete(Integer id);
}
